<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">	
	<title>一只鱼</title>	
	<script type="text/javascript">
	    function delBlog(str)
	    {
		    //alert('fdas');
		    document[str].submit();
	    }
	</script>
</head>
<link href="blogcss.css" rel="stylesheet" type="text/css" />
<body >
    <div id="page">
     <div id="head"> 
          		<h1 id="BlogTitle">
				<a href="#">fish's Weblog</a>
				</h1>
				<h2 id="BlogSubTitle">Thinking in RIA Solutions...2470,8514,1020的生活演绎</h2>
     </div>
       <div id="menu"> 
      <!--    <ul>
              <li><a href="#">博客</a></li>
              <li><a href="#">博客</a></li>
              <li><a href="#">博客</a></li>
              <li><a href="#">博客</a></li>
              <li><a href="#">博客</a></li>
          </ul>-->
     </div>
		<div id="divNavBar">
<!--		<h3>导航</h3>-->
<!--		<ul>-->
		</div>
     <div id="main" > 
         <?php
			  session_start();
              include('global.php');

              $result = mysql_query("select * from articles order by writetime desc");
              
			   while($row = mysql_fetch_array($result)){
				$info[] = array("id"=>$row['id'],"title"=>$row['title'],"time"=>$row['writetime'],"content"=>$row['content']);
				}

              $isShow = false;
			  if($isShow)
                 echo   "<div id='post'>
         			 		<a href='edit.php'>发表文章</a>
							<a href='ckeditor/_samples/index.html'>示例</a>
       		 			</div>";

              $i = 0;
              foreach($info as $elem)
              {
//              	<div id='atr'>
//	              			<font>作者:沟里</font>&nbsp<font>".$elem['time']."</font><a href='#'>查看留言</a><br>
//	             	 </div>
                 echo 
				  "
				   <div class='post'>
				     <h4 class='post-date'>2011年8月10日
				     </h4>
				 	 <h2 class='post-title'>
	               		   <a id='title' href='#'>".$elem['title']."</a><br>
	             	 </h2>
	             	
	             	 <div  id='post-body'>
	              			".$elem['content']."
	            	 </div>	            	 	                 
		             <h6 class='post-footer'>
						发布:yufd1986 | 分类:AIR | 评论:0 | 引用:0 | 浏览:
						<span id='spn463'>358</span>
					 </h6>
					</div>";
                 $i++;
              }
              
//             <div id='opt'>
//		              	
//				          <span><a href='#' onclick='delBlog(\"formdel.$i\")'>删除</a><br>
//				          <form action='del.php' name='formdel.$i' method='post' onsubmit='return false'>
//				            	 <input type='hidden' name='text_id' value='$elem[id]' />
//				           </form>
//			              </span>
//			              <span>	  
//				            <a href='#' onclick='delBlog(\"formedit.$i\")'>|编辑</a><br>
//				            <form action='del.php' name='formedit.$i' method='post' onsubmit='return false'>
//				            <input type='hidden' name='text_id' value='$elem' />
//				            </form>
//						  </span>
//		             </div>  
          ?>    
     </div>
     <div id="right">             	   
	     <div id="right-weibo">
	           <iframe src="weibodemo/index.php" frameborder="0" scrolling="no" width="100%" height="100%"></iframe>
	     </div>
	     <div class="function" id="divCatalog">
	     	<h3>网站分类</h3>
			<ul>
				<li>
					<span class="feed-icon">
					<a href="http://www.7yue.com/feed.asp?cate=1" target="_blank">
					<img title="rss" width="20" height="12" src="images/rss.png" border="0" alt="rss"/>
					</a>
					</span>
					Flash (38)
				</li>
				<li>
					<span class="feed-icon">
					<a href="http://www.7yue.com/feed.asp?cate=1" target="_blank">
					<img title="rss" width="20" height="12" src="images/rss.png" border="0" alt="rss"/>
					</a>
					</span>
					web (10)
				</li>
				<li>
					<span class="feed-icon">
					<a href="http://www.7yue.com/feed.asp?cate=1" target="_blank">
					<img title="rss" width="20" height="12" src="images/rss.png" border="0" alt="rss"/>
					</a>
					</span>
					fdafdsafdsa
				</li>
				<li>
					<span class="feed-icon">
					<a href="http://www.7yue.com/feed.asp?cate=1" target="_blank">
					<img title="rss" width="20" height="12" src="images/rss.png" border="0" alt="rss"/>
					</a>
					</span>
					fdafdsafdsa
					</li>
				<li>
					<span class="feed-icon">
					<a href="http://www.7yue.com/feed.asp?cate=1" target="_blank">
					<img title="rss" width="20" height="12" src="images/rss.png" border="0" alt="rss"/>
					</a>
					</span>
					fdafdsafdsa
				</li>
				<li>
					<span class="feed-icon">
					<a href="http://www.7yue.com/feed.asp?cate=1" target="_blank">
					<img title="rss" width="20" height="12" src="images/rss.png" border="0" alt="rss"/>
					</a>
					</span>
					fdafdsafdsa
				</li>
			</ul>
	     </div>
	     <div class="function" id="divComments">
			<h3>最新评论及回复</h3>
			<ul>
			<li>
			<a href="http://www.7yue.com/post/454.html#cmt3048" title="2011-1-15 15:52:12 post by EyeNuts">博主，能不能讲得详细点</a>
			</li>
			<li>
			<a href="http://www.7yue.com/post/454.html#cmt3044" title="2011-1-11 10:35:17 post by 易评网">难道这年头还兴忽悠</a>
			</li>
			<li>
			<a href="http://www.7yue.com/post/453.html#cmt3043" title="2011-1-7 11:41:59 post by qiyounet">记得回仿，这里不错，回常来的</a>
			</li>
			<li>
			<a href="http://www.7yue.com/post/454.html#cmt3042" title="2011-1-7 10:45:22 post by CarriageBolts">正想买一部三星的Andr...</a>
			</li>
			<li>
			<a href="http://www.7yue.com/post/355.html#cmt3041" title="2011-1-5 15:06:56 post by qiyounet">参观了啦，谢谢博主提供的...</a>
			</li>
			<li>
			<a href="http://www.7yue.com/post/375.html#cmt3040" title="2011-1-3 16:45:12 post by 回车两下">四个字 学习曲线</a>
			</li>
			<li>
			<a href="http://www.7yue.com/post/454.html#cmt3039" title="2010-12-29 19:49:13 post by impactwrench">Android势头很猛啊</a>
			</li>
			<li>
			<a href="http://www.7yue.com/post/427.html#cmt3032" title="2010-12-17 14:55:48 post by terry">.FP崩溃有很多情况...</a>
			</li>
			<li>
			<a href="http://www.7yue.com/post/454.html#cmt3030" title="2010-12-16 11:00:13 post by copperfittings">嗯现在用这个的人很多</a>
			</li>
			<li>
			<a href="http://www.7yue.com/post/422.html#cmt3022" title="2010-11-26 20:37:47 post by Mhycoe">请问，TourdeFle...</a>
			</li>
			</ul>
		</div>
     </div>  
<!--     	<div id="divBottom">-->
<!--			<h2 id="BlogCopyRight">-->
<!--				Copyright 2007 www.7yue.com. Some Rights Reserved.-->
<!--				<br/>-->
<!--				<a href="http://www.miibeian.gov.cn" target="_blank">京ICP备05064035号</a>-->
<!--			</h2>-->
<!--		</div>-->
	<div id="divBottom">
          	<h2 id="BlogCopyRight">
			Copyright 2007 www.jiayy.com. Some Rights Reserved.
			<br/>
			<a href="http://www.miibeian.gov.cn" target="_blank">京ICP备00000000号</a>
			
			</h2>
     </div>
    </div> 
</body>
</html>